shortened ruby and python