Simple generic functions for Python
