Add __version__ etc to __init__
Add application-import-name option
Fix pep8 errors
Add some more test cases