I was using appium_python_client 2.0.0, I tried uninstalling and installing it back but that did not fix the issue. Downgrading it to 1.3.0 fixed it