def writeMethodCall(usr_id): for transition in getTransitions(): if transition is not None: DB.writeMethodCall(transition) seq_id = DB.getLastSeqId()[0] DB.writeBM(usr_id, seq_id)