You seem to be getting your self mixed up with Python lists and passing values directly
Try
update=dashboard.wireless.updateNetworkWirelessSsid(targetNet, 0, name='Test SSID', enabled=True, encryptionMode= 'wpa', wpaEncryptionMode= 'WPA2 only',psk= 'NewPassword!')