Generate java code from python using android source sdk as reference