Corrected the check_density.py script to add a timeout value of 1/2 second on the select.select() call to keep it from causing the outer script to take up 100% CPU cycles while the magic subprocess runs.