Add-fix tornado bug

Only load tornado dependent classes when tornado is available.