Common python tools