I am following the Gray hat python book.One of the examples illustrating - "Extending Breakpoint Handlers" has the following code -
from pydbg import *