now python script reads from a file and
gives output for logging purposes