added initState utility function, perhaps it should go somewhere else eventually
added initState utility function, perhaps it should go somewhere else eventually

anniecherk/pyschocnf,anniecherk/pyschocnf