Fix line numbers in python error warnings and make all.snippets work for lua too. Fixes #211.