This module provides a mechanism to execute a function when a specific event on a file handle, file descriptor, or signal occurs, or after a given time has passed.

WWW: https://pypi.python.org/pypi/event/
