Return the values contained in this object as a dict

def to_dict(self):
        """
        Return the values contained in this object as a dict
        """
        return {'domain_type': self.domain_type,
                'max_memory': self.max_memory,
                'current_memory': self.current_memory,
                'num_cpus': self.num_cpus,
                'running': self.is_running(),
                'name': self.name,
                }