Misc Python tools