Update python partnership library

@lopatin I make a bunch of changes in several commits, please review.  Thanks!
I actually don't know, I copied these comments over from the ruby gem Aaron wrote.  @abeppu, is the password a 10 character minimum?