fix pymaging support