modified functions in bcd_phot.py to work with the new architecture of bcd_phot.pro