Wrap eval_double in Python

And add tests.