Create statesfromfile.py

Gets the list of states from a file rather than from a list.