corrected some nuances between ruby and python that I overlooked