Use logger instead of trying to print to stdout. especially since print_function...