Create controller.py

initial commit