unify .sh and .bat into .py