A Java programmer's attempt at Python programming