Switched form python 2.x to 3.x