Python and Ruby equivalents