fix to new Maggy py