change in from python input function

Changes to load datafiles instead of accepting objects from python