Hi Chris,
We have been using the Revit Python Shell for a while to automate a few bits and pieces, so as part of a learning exercise I took this on and eventually got it working, but I am not an expert in Python, Revit or otherwise.
You will need the Revit Python Shell installed, then kick off the shell and load the file and then run it...
Setting up the shell needs a little bit of know how, but we have a guy here who sorts that stuff out, unfortunately he is off on quite a long break at the moment. We have certain things configured so you have immediate access to variables like
doc - The active document
selection - the current selection
uiapp - UIApplication
etc...
I realise that if you don't currently have this set up then my script is of little or no help at all... but if you fancy setting this up or know someone who can, then it can solve the problem for you...


sorry I can't be more help.
I am looking at re-writing this in C# as a proper Revit plugin, but we have found that while it removes the linestyles from the drop down in the main user interface, if you go into the Linestyles in Additional Settings under the Manage tab, the subcategories are still in there... I haven't found a way to get rid of these yet.
Regards
Ian