Python routines to process astrophotographys