python: Mouse simulation