python 2 code