"ImportError:No module named signal" when "Import subprocess" command is used

I am attempting to create a python code for a digi transport wr21 that will automatically ping a local ip address. Then if the ping fails twice the router will reboot, but when I try and import subprocess the system gives me an “ImportError: No module named signal.” I have built the code up in python 2.6 and can test successfully from my laptop but when it is run on the modem it will not function. How do I remedy this?