Modified python version to support python3