py: Fix lexerunix, where not all data may be read from a file.

Addresses issue #526.