Add gitignore file
Use subprocess.Popen instead of subprocess.check_output in PingSensor