cast singles to doubles before passing to python (Issue #50)