Python code for controlling Android toolchain