Instead of hacking a reference to __rtipl_roles into every self.metadata, it'd be cleaner to import ID3File where it's needed, and just reference ID3File.__rtipl_roles.