Suggestion:  For these long lines, you can "wrap" them by exploiting the substitution keys, e.g.

    ec_0 = 'for NUM in `seq 1 64`;
    ec_1 = do trap "echo Received $NUM, ignoring..." $NUM;
    ec_2 = done; while :; do sleep 1; done'
    exec_cmd = %(ec_0)s%(ec_1)s%(ec_2)s

just a suggestion.