Timeout as utils

Addresses #31 

Added wrapper around timeout IO Loop as discussed.

Made PEP8 fixes to the file.

Tested by integrating with collabedit. Works.
Is this check necessary or will the add_timeout function throw the same error anyway