calculate for Python as well now