This script allows you to batch rename artists "Firstname Lastname" to "Lastname, Firstname". This of course works with middlenames: "Firstname Middlename Lastname" -> "Lastname, Firstname Middlename". It allows you to list three kinds of exception, whole artists, prefixes and postfixes. The reverse is also possible by changing the mode variable, although this ignores the prefixes and postfixes.