control android device/emulator by python
<p>I am not familiar with android development. But just want to use python script to do something on my android device/emulator.
For example: </p>

<ol>
<li>change system settings.</li>
<li>set a proxy.</li>
<li>open app A, click some place, do something else...</li>
<li>then open app B, tap up down,  do something else...</li>
<li>and so on.</li>
</ol>

<p>I have tried </p>

<ol>
<li><code>monkeyrunner</code>, which actually is not by python(it's by Jython), and usually I don't know why the example code can't work(lack of debugging methods in this way.I can use ipython or pycharm if one support python),</li>
<li><code>appium</code>, which introduce a very good framework, completely support python.But the tutorial always says about testing only one app, seems it can not change system settings or something like press <code>HOME</code> or <code>BACK</code> button.</li>
</ol>

<p>I have never do such things before, are there any tools or tutorials could cover my case?</p>