Fixed bug for Python3 functions calling