Fix example Sandbox connection

The code sample for connecting to a sandbox produced an 2 python errors.  This should fix it.