Some of the IDL Astrolib photometry algorithms translated to python