General Python tools.