Update python partnership library

@lopatin I make a bunch of changes in several commits, please review.  Thanks!
typo? "and" is "an"?