You could use relative imports. In your cache.py file:
cache.py
from ..bar.pyro import explosion def setup(): print('setting things up') setup() explosion()