Fix example Sandbox connection

The code sample for connecting to a sandbox produced an 2 python errors.  This should fix it.
Merge pull request #6 from jlantz/patch-1

Fix example Sandbox connection
Fix for usernames and/or passwords that contain invalid xml characters.
Remove accidentally committed printf debug.
Merge pull request #9 from mayfield/master

Fix for username/password with invalid xml chars