Python tools