Creating a program in Python to control the mobile platform