py: Make str.[r]partition more efficient.
py: Put back proper ValueError for badly parsed integers.