Work around IronPython issue with compile()

IronPython does not recognize __future__.CO_FUTURE_PRINT_FUNCTION passed
as flags to compile(). Doctests automatically pass this flag when
print_function is imported from __future__.