Simulation of a ball on ramp using python