Pieces of utility python code that astronomers may find useful