Framework building using Python

Hi,
I need to build two frameworks for two different functionalities. One is to test the web forms and another is for some process automation. if there is any tutorial/step by step guide to learn how to build frameworks using python then please suggest.

Thanks
Adi