Python conditional syntax, unsurprisingly, does not work in ruby