in gotostate.py [0:0]
def sm_arn_from_execution_arn(arn):
"""
Get the State Machine Arn from the execution Arn
Input: Execution Arn of a state machine
Output: Arn of the state machine
"""
sm_arn = arn.split(':')[:-1]
sm_arn[5] = 'stateMachine'
return ':'.join(sm_arn)