How to avoid the dreaded circular import problem in Python