A simulation of elastic collision in 2d with Python