imported print_function from __future__, additional cleanup