Update controller.py

Allowed piping into Matlab program