P3K fix broken doctest and add forgotten print_function import