Add support for namespaces
Rename self.opened_file