Added an assertIterator method to test case in test_handlers_lib.py to pass another 5 tests under Python3