Repackage as package

Introduced init and version files to allow library to work as a package
with a clean interface (the namespace is not polluted by ctypes and os).