Java Average Array Value Python Coder