I was able to get it working and ran it, but the program (dbdump.py) just says "Couldn't open wallet.dat/main, try quitting Bitcoin and running this again." Even tried fixwallet.py, but same result. I guess I just lost 20 BTC.

If your giving up on it, PM me with your wallet file and i'll try and fix it, if I can i'll send most of it back to you

You've got nothing to lose
