chapter two of java in python