Fixed script.py and Server.py to call the right function