Fix SCAN tests for python2.6