refactoring, add interactive.py
use safety measures when editing (MD5 hash and timestamp checking)