make print work on python 2 and 3
mock types to work on python 3