move py2/3 test to definition time