<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def remove_pyname(self, pyname):
 """Removes pyname when imported in ``from mod import x``"""

        visitor = actions.RemovePyNameVisitor(self.project, self.pymodule,
                                              pyname, self._current_folder())
        for import_stmt in self.imports:
            import_stmt.accept(visitor)