@railmonitor You do not need the lamda function for setting the callback. Simply giving the name of the callback function is sufficient.
Timer.Alarm(timer_sampler, s = 1, periodic = True)
Obviously, the function timer_sampler has to be placed in your script before using if for the alarm callback notification, and the callback has to have a single argument, the alarm object.