ksh in python

finished, no bug.