Google Sheets Substring Function In Python