move pym to own script