Fixed some pymedia issues