Added missing import

Tested on Ubuntu 12.04, Python 2.7.3. Fixed error when trying to convert to PDF.