added import hooks to __init__
added 0.01s sleep to don't use 100% of cpu process on ioloop