Restarting renamer.py to fix all problems

It was totally broken and annoying me, going to do a quick rewrite