Use same import order as matplotlib for PySide/PyQT

This ensures that the same backend is used, otherwise objects from both will try to combine.
Hm, I don't think this does what you intended... this way the outer ImportError would never occur. You should rather exchange the inner with the outer code block?