I installed the Python pdfminer module, which comes with pdf2txt.py. I can use pdf2txt.py as follows from the command line:
pdf2txt.py -o converted.html some-pdf.pdf
The pdf2txt.py file is located at:
$ which pdf2txt.py
/usr/local/bin/pdf2txt.py
I can also import it from the interactive python command line, but to my surprise, I cannot import it in a program which I'm writing:

Does anybody know why this is, and more importantly, how I can solve it? All tips are welcome!