Refactored to provide a package.
This will make later additions easier.
Adding default options and example script
Adding timeout code
Ignoring compiled python code