Adapted find_var for Python

- list.index(elem) raises a ValueError if elem is not in list

Signed-off-by: Stefan Marr <git@stefan-marr.de>
Added Parser class

Signed-off-by: Stefan Marr <git@stefan-marr.de>