Metasploit w Python

Here you go:
https://www.offensive-security.com/metasploit-unleashed/python-extension-2/
Vitalik-Hakim