Python View Object Methods Java