Minor splitting optimization

This really doesn't impact performance much, but when getting the last element of a split, it's better to use rsplit with a maxsplit limit.