**Describe the bug** Moving a file with relative imports will not correctly rewrite the imports in that moved file. **To Reproduce** 1. setup ```py # a.py from . import z ``` 2. movepy file a.py b/c.py **Expected behavior** Expected ```py # b/c.py from .. import z ``` Actual ```py # b/c.py from . import z ```