Check out the pyActionInfo user page, it has a HarnessType property. I found this by searching the clipboard for the word "Perform" I got 7 pages of results, a couple of HarnessType properties but this looks like the most straightforward.
The following worked for me in my limited testing:
pyActionInfo.HarnessType != 'Perform'
Posted: 4 years ago
Posted: 24 Jan 2018 8:32 EST
Siddhant Agrawal (SiddhantA)