Add coding for python2.