added low python version support by disabling call to ping