How can I pretty-print a (possibly nested) Python list with indices, similar to the Perl's Data::Printer
module, e.g. for L = ['a', 'b', None, 'c']
the output should be something like this:
[
[0] 'a',
[1] 'b',
[2] None,
[3] 'c',
]