How To Create A Timeout In Python