This should be a module function not a class method (it event don't have self as first argument).