fixing import loop when using management commands