Re-enable serial communication (untested)
Added missing sys import