Adding the code published by @loewis currently residing on PyPI.
https://pypi.python.org/pypi/iconv/1.0

It was uploaded on 2011-11-23 and needs some TLC.
bug fix for expansion when decoding
authors and version