fix my java mind to python