How to split a string by a specific character in python?