Python Point Spread Function Photometry Principle