first version worked for python test code