To change quality, change lines 132-143 appropriately as needed.
Around that same section you can change the file format or mess with merging if you want the audio track & video separate.
FFmpeg is required in this software, and you can get it from their official website and github. you need the ffmpeg-essentials, then unzip and take out the ffmpeg.exe and put it in the same directory as dootube.py