working on simple ping sensor code with python