utilities for python