Using Java in a Nutshell Examples 4th edition  and coding the examples in Python