This should fix the problems with #496

Originally sql branch was not supporting the python notation. Not it is.