I did some modifications inside python-for-android in order to facilitate migrating to java