Fix mdfdump.py script and add a test to check it.
mdfdump.py
FYI @rmatev @sstahl
Also make it executable and install it