Converted to a module, fixed bug in virtualenv invocation
Added a simple test suite