Created safe_input.py
Added code to Trigram.py to handle chance of no trigram available