Make like tool in python