pyfastboot is a wrapper library for the fastboot utility from the android sdk. Originally, I made this as a tool for a specific phone (Moto X), but later decided that it could be more generic then that.
If you find any problems, please use the issue tracker. Official releases can be found here. The github repository is here.