def load(self):
         """Read a file and create elements accordingly."""
-        import ConfigParser
         import mudpy.misc
         import os
         import os.path
-        self.data = ConfigParser.RawConfigParser()
+        # TODO: remove this check after the switch to py3k
+        try:
+            import configparser
+        except ImportError:
+            import ConfigParser as configparser
+        self.data = configparser.RawConfigParser()
         self.modified = False
         if os.access(self.filename, os.R_OK):
             self.data.read(self.filename)
                ) != 0o0600:
                 os.chmod(self.filename, 0o0600)
 
-            # write it back sorted, instead of using ConfigParser
+            # write it back sorted, instead of using configparser
             sections = self.data.sections()
             sections.sort()
             for section in sections: