This could be a candidate for a `@staticmethod`. After all, you're not using `self` anywhere in there and as a standalone utility function outside the class it doesn't make a whole lof of sense. 
I [like](http://www.peterbe.com/plog/newfound-love-of-staticmethod) staticmethods.