Added finalphot.py to replace finalphot.pro function