Class based BrainFuck interpreter in Python