windows compat

use subpress instead of os.popen3 for the compat of windows