Leitner system in Python