Useful tools for extending Salt in python