Python Beam Analysis Program