Turning timeout into a global variable in slave.py