refactored scribe_level3.py

according to the specifications