Creating Python Code With Multiple Functions In Java