There is no method action for elements of the symmetric group. You should write a(tuple) instead of a.action(tuple). And by the way, your function does not return anything, and I think c should be initialized to 0. Maybe:
def Aut(tuple):