Let it compatible with python2 ( > 2.6 ).

Now this is compatible with python2.6, python2.7, and python3.X.
Below python2.6, I don't test; so, I don't known whether it works.