readline in java, ready to cut and paste!
now all testst run in python