I'm working on a python module to allow the developer to access and manipulate utmp from within python, basically writing bindings for utmp.h.

I can create methods like no one's business, but when it comes to making a new type I seem to be missing something fundamental, so I was wondering if there was a way to output a class or something, and so I can bypass new types all-together.