trying fix for someones python ping sensor program