When using DataTypes in Python you will need to construct them (i.e. StringType()) instead of referencing a singleton.
StringType()