I can't see much benefit in the class definition approach. It doesn't matter either way, but I'd be tempted to just make these module level functions.