Fixed imports and construction of logger when colorlog is not avialable