fixed profiler script to remove warning in python 3.8+
Usage of is
instead of ==
triggered a warning. This should not impact the behaviour of the script.
Usage of is
instead of ==
triggered a warning. This should not impact the behaviour of the script.