try: replace_with = self.read_from_file(self.server.www + '/dashboard/parts/' + mapping_table[match])