Fixed python2 bug - need to specify an integer as second argument to set_timeout