Reversing a path using python

Hi everyone,
I have a physics conveyor with two physical paths, I would like to turn off path 1 and start path 2 using my python script.
However, python isn’t exactly my strong point and I’m unsure what the correct syntax is. Would anyone happen to know what the correct syntax is?
Thank you in advance.
Cheers,
Rick

Part of the code intercepted from the Two Way Conveyor component.

def change_direction(arg):

  if arg.Value == 'Forward':
    #When conditions permit, it can be a Boolean signal, 
    #a text attribute or a text signal.
    
    conv.Direction = VC_PATH_FORWARD_AUTO#Change bidirectional path direction
    

  elif arg.Value == 'Backward':
    conv.Direction = VC_PATH_BACKWARD_AUTO

  else:
    pass