made fold / alias switch at python layer
(#562)