Python program to record and play back mouse movements.