logging.basicConfig should only be in top level scripts.