Various utilities for python