Added Python2 and Python3 compatibility

Exchanged iteritems() for item() and added helper function for printing depending on the Python version. Use this patch as a base for further and better Python3 compatibility. python-feedgen is now working for both Python2 and Python3.