Java/Python code written for university classes