[python] Python: Is there an equivalent of mid, right, and left from BASIC?