Python: fixed an issue with Unicode attribute names in Python 2.x; closes #549