adding Flask.g module functions
setting up test_journal.py
test_journal.py work and ran tests.
test_journal and journal.py completed for Step2.