move getAlive from weird bitmap 2d solution to clean 1d solution
flatten all the firmware from 2d to 1d, use atexit to robustify the Python library