system() equivalent in python