patched tests to avoid prints while running unit tests

TestCloseIssue-based tests were printing to the console when run.
The fix requires the use of `print_function ` but that's always a good idea because it improves python 3 interoperability and is cleaner to read.