import os, re, subprocess

result = subprocess.check_output('xinput', shell=True)
result = str(result)
p = re.search('Touchpad\D*(\d+)', result)

id = p.group(1)

os.system('xinput set-int-prop %s "Device Enabled" 8 1' % (id))

10c37090ae3a00ea692572e716ed4b3b56a17139
<mask token>

<mask token>
os.system('xinput set-int-prop %s "Device Enabled" 8 1' % id)

<mask token>
result = subprocess.check_output('xinput', shell=True)
result = str(result)
p = re.search('Touchpad\\D*(\\d+)', result)
id = p.group(1)
os.system('xinput set-int-prop %s "Device Enabled" 8 1' % id)

import os, re, subprocess
result = subprocess.check_output('xinput', shell=True)
result = str(result)
p = re.search('Touchpad\\D*(\\d+)', result)
id = p.group(1)
os.system('xinput set-int-prop %s "Device Enabled" 8 1' % id)

import os, re, subprocess

result = subprocess.check_output('xinput', shell=True)
result = str(result)
p = re.search('Touchpad\D*(\d+)', result)

id = p.group(1)

os.system('xinput set-int-prop %s "Device Enabled" 8 1' % (id))
