Read stdin when no UID are given in sys.argv

This let users to pip list or search command with read:
$ imap-cli-search -a "Person Name" -f {uid} | imap-cli-read
Fix unit tests for last patch