Fix python compatibility test when a new generated code imports an old version(2.6.1 or older) generated code.