Attempt at an Arduino simulator in Python