Some codes I needed for some astro stuff. ellipse fitting ellipses interactively in various ways on images polygon maskeditor using ds9 bindings in python