To run the batch file and collection output, you can just use subprocess.check_output if you are running python2.7+ (you could also just call httpget twice directly without the wrapper batch script):
import os
from subprocess import check_output
output = check_output(['/path/to/batch_file.bat'])
# parse the output, depending on what it is exactly, could be something like
temp, pressure = [int(l.strip()) for l in output.split(os.linesep) if l.strip()]
If you want a little more control or are running python<=2.6, you can get the equivalent behavior by doing something like
from subprocess import Popen
process = Popen(['/path/to/batch_file.bat'], stdout=PIPE)
output, _ = process.communicate()
retcode = process.poll()
if not retcode:
# success! output has what you need
temp, pressure = [int(l.strip()) for l in output.split(os.linesep) if l.strip()]
# ...
else:
# some non-zero exit code... handle exception
However, as Evil Genius points out, it may be better to just make the http requests directly from python. The requests api is great for this:
import requests
response = requests.get('http://172.24.48.67:1000', params=...)
print(response.text)