Nodes menu when nothing is selected

This was a  little more complicated than I expected. 
I add the node categories to lists manually because I can make them come out sorted in the same way they do in the shift+a menu (Couldn't find a way to do this programatically).

Also deleted the backup file (py~) and added it the ignore (seemed old?).