Changed old os to subprocess