Running Python 2.7
When executing:
$ python client.py get_emails -a \"åäö\"
I get:
usage: client.py get_emails [-h] [-a
You can try
type=lambda s: unicode(s, 'utf8')
instead of
type=unicode
Without encoding argument unicode() defaults to ascii.