raise an TypeError exception with an argument string 'In order to allow non-dict objects to be serialized set the safe parameter to False'.
raise TypeError ( 'In order to allow non-dict objects to be ' 'serialized set the safe parameter to False' )