Upgrading from PySpark 1.0-1.2 to 1.3 When using DataTypes in Python you will need to construct them (i.e. StringType()) instead of referencing a singleton.