detect cyclic imports in python