How To Parse Through List In Python