Reworking the server.py files to use python bottle framework instead of raw python