Fixed some loading bugs

pymedia still couldn't be loaded correctly... now it can.