Python start_activity() returning error

I need a way to select the specific wireless network I’m connecting to. I’ve come to the conclusion that the only way to do that with Appium is to start the WiFi settings activity.

I’m using Appium I downloaded an app to make sure I got the name of the WiFi settings correct as

The line that is failing is:

self.driver.start_activity(‘’, ‘.WiFiSetupActivity’)

The error I get is:
File “C:\Python34\lib\site-packages\appium\webdriver\”, line 552, in start_activity
for key in arguments.iterkeys():
AttributeError: ‘dict’ object has no attribute ‘iterkeys’

Is iterkeys() a typo?

I’ve gotten a little further along with this issue. I’m able to bring up the Wireless Selection screen with:

call(“adb shell “am start --user 0 -n””)

However, interacting with the dialog, and then getting back to my app once the network has switched is still proving to be problematic.