ADB, Fastboot and Heimdall wrappers for Python. They use subprocess.