refactoring the bottle script to be a simple python module

also committed the *.pyc file (which feels like a bad idea, but let'e leave it for now... )