iterator rsplit(a: PyBytes; sep = None; maxsplit = -1): PyBytes {....raises: [],
tags: [], forbids: [].}
with unicode whitespaces as sep.
treat runs of whitespaces as one sep (i.e. discard empty strings from result), while Nim's unicode doesn't has rsplit yet
Source
Edit