Update alivecheck.py

Added synchronization process, script should now be reliable