Small addition in io.py

Now also lists and tuples can be extracted from filenames.