fix a but in saving metadata, switcch ti PySide for better compatability with windows python distros