Python/UniqLineCounter: Refactor, read lines from stdin or open files from argv