add change pwd, fix PEP8