[FIX] compatibility between python3 & 2.7 corrected