Made the beans more pythonic. Added LevelBean to deal with scoping