Python too slow to work (10fps)