POST request in Python

Hoping to maybe reach the rare python programmer out there with help for this.

this is how im sending the information for a POST. Is this correct? Im getting a username/password error though I know the information is correct (unless ‘name’ is not your UN you log into the normal site with).

Looking for some guidance on this. Thanks.