run rewrited in python