For this kind of activity and use perhaps would be a good idea to replace print with logging or colorlog.