server.py: Parses commands and sends them to python callback functions