Postgresql Split String Function Python Questions