added py_top_phot