A parser for LED program using Python