Simplifier version of Leer.py

This also adds tests :)