def to_dict(self):
        """
        Convert the current object to a dict, with properly encoded and
        formatted values for dumping
        """
        # grab all attributes that should be saved into a dict
        data = {
            'path': self.path,
            'title': self.title,
            'slug': self.slug,
            'is_temp': self.is_temporary,
            'cover_art': self.cover_art.image_path,
            'title_logo': self.title_logo.image_path,
            'modified': self.modified,
            'deployed': self.deployed,
            'plugin_main': self.plugin_main,
            'canvas_main': self.canvas_main,
            'flash_main': self.flash_main,
            'mapping_table': self.mapping_table,
            'deploy_files': self.deploy_files.items,
            'engine_version': self.engine_version,
            'is_multiplayer': self.is_multiplayer,
            'has_notifications': self.has_notifications,
            'aspect_ratio': self.aspect_ratio
        }
        # attempt to format the data correctly
        for k, v in data.iteritems():
            try:
                data[k] = v.encode('utf8')
            except (__HOLE__, AttributeError):
                pass
        return data

    #iterate through the directories and add files to list
dataset/ETHPy150Open turbulenz/turbulenz_local/turbulenz_local/models/game.py/Game.to_dict