def __init__(self, pypump=None, *args, **kwargs):
self.links = {}<EOL>if pypump:<EOL><INDENT>self._pump = pypump<EOL><DEDENT>mapping = PumpObject._mapping.copy()<EOL>mapping.update(self._mapping)<EOL>self._mapping = mapping<EOL>for i in self._ignore_attr:<EOL><INDENT>if self._mapping.get(i):<EOL><INDENT>del self._mapping[i]<EOL><DEDENT><DEDENT>for key in self._mapping.keys():<EOL><INDENT>if not hasattr(self, key):<EOL><INDENT>setattr(self, key, None)<EOL><DEDENT><DEDENT>
Sets up pump instance