Using only python 2.7