[FIX] Python2.6 incompatibility issues for 7.0