Added pdfminer to requirements, corrected pdf.py to import correct modules / classes.