Fixed problem with interpreting python code [skip ci].