Bigquery Substring Method In Python