Python Trim String Length Sql Function To Update