The Adaptive Server Enterprise extension module for Python adds support for compute rows.
An example of compute row processing is available in the sample program compute.py.