updating tests to be compatible with python 3.3, 3.4