Get Subset Of String Python Functions