Add test for python_execute with range