Py3k port of the old stdlib module
