      pass
 Index: icat/dumpfile_xml.py
 ===================================================================
---- icat/dumpfile_xml.py	(revision 366)
+--- icat/dumpfile_xml.py	(revision 368)
 +++ icat/dumpfile_xml.py	(working copy)
 @@ -74,8 +74,8 @@
          elif subelem.tag in obj.InstMRel:

 <icatdump>
 """)
         self.outfile.write(etree.tostring(head, pretty_print=True))
@@ -164,4 +164,4 @@
     def finalize(self):
         """Finalize the dump file."""
         self.startdata()
-        self.outfile.write(b"</icatdump>\n")
+        self.outfile.write("</icatdump>\n")
Index: icat/dumpfile_yaml.py
===================================================================
--- icat/dumpfile_yaml.py	(revision 349)

@@ -96,8 +96,8 @@
         self.client = client
         # need binary mode for infile
         self.infile = os.fdopen(os.dup(infile.fileno()), 'rb')
-        self.insttypemap = { c.BeanName:t 
-                             for t,c in self.client.typemap.iteritems() }
+        self.insttypemap = dict([ (c.BeanName,t) 
+                                  for t,c in self.client.typemap.iteritems() ])
 
     def getdata(self):
