painkiller for relative imports

Note that there is risk for breakage in parts not exercised by the test suite. Please test with pyFF for example.