Remove obsolete hardcoded input file

Input is read from stdin or a file
Refactor, move to_nix_dict function to utils

Ideally scripts.py just has the code involved in running the scripts
with the functionality defined elsewhere