using popen instead of subprocess call