How To Parse A List In Python