While Processing File Based Input In Python From User