Fix python 2.6 dependencies
Perform string comparison for field type