Update layout_scanner.py

to be compatible with Oct 2013 changes in pdfminer
Small changes to get layout_scanner.get_pages() to work with latest version of pdfminer