Bigquery Substring Method Python