implements of Linux CMD in Python