I think it should be something like:
import System
static def GetAttributeValue(Incident):
Value = 'False'
if Incident.GetCurrentUserName()
== Incident.RaiseUser.ToLower()
elif Incident.GetCurrentUserName()
== Incident.CreationUser.ToLower:
Value = 'True'
return Value
This might be helpful: