Python: repaired test cases to work on Python 2.6
Python: removed another DeprecationWarning from tests