I added a copyright notice in febf18a949bd7d7a8766c194998d85759ad40143
I didn't paste a copy of the license because it isn't included in original code, although MIT licensing is indicated on http://code.activestate.com/recipes/576693/