fix usage of XmlGenerator

this patch makes pyforce compatible with the XMLGenerator in python 2.7.4
source: https://code.google.com/p/salesforce-beatbox/issues/detail?id=14

please release a new version on pypi, thx