First split a SQL insert statement into an array of rows; then parse it using csv.reader library.
followup