Various helper and util functions for django and python.