Crack a web form using python

I run a web server locallyhost intentionally vulnerable on one of my old computers that I test in pen. Can any one guide me through the libraries and syntax required to create a functional python script in order to decrypt a web login form?