python rewrite mirrors node