Python tools and utilities