src/python/rebuild_db3.pyis a python3 versionsrc/python/rebuild_db2.pyis a python2 version I found but doesn't depend oneyed3so it's probably missing some functionality.
Place the python script (rebuild_db[2|3].py) on the root of your IPod and put your audio files in a directory in the root of the IPod as well. Then run python[2|3] rebuild_db[2|3].py AUDIO_DIRECTORY to index the DB.
Don't remove your IPod Control directory. You can't regenerate it without iTunes.