Python pattern matching inspired by OCaml and F#.