the python icon issue is a different one, the correct mimetype for python is text/x-python and if you go to the properties of a .py you can notice it's correctly detectted, your Overrides is a wrong workaround -- Nautilus uses wrong icons for text files https://launchpad.net/bugs/38319