pyControl is a Python-based library that integrates with F5's BIG-IP 
iControl management API. 

The source at the F5 site requires a free registraton and login.
For simplicity, I have the source available at my personal site.