Misc astro-related python routines