Python utility functions - unicode, logging, datetime