def __init__(self, **kwargs):
<EOL>self.__api_key = None<EOL>acceptable_keys = (<EOL>'<STR_LIT>',<EOL>)<EOL>for key in kwargs:<EOL><INDENT>if key in acceptable_keys:<EOL><INDENT>setattr(self, '<STR_LIT>' % key, kwargs[key])<EOL><DEDENT><DEDENT>self.__user_agent = '<STR_LIT>' % ('<STR_LIT:_>'.join([str(var) for var in sys.version_info]), __version__)<EOL>try:<EOL><INDENT>from django import VERSION<EOL>from django.conf import settings as django_settings<EOL>if not self.__api_key and hasattr(django_settings, '<STR_LIT>'):<EOL><INDENT>self.__api_key = django_settings.POSTMARK_API_KEY<EOL><DEDENT>self.__user_agent = '<STR_LIT>' % (self.__user_agent, '<STR_LIT:_>'.join([str(var) for var in VERSION]))<EOL><DEDENT>except ImportError:<EOL><INDENT>pass<EOL><DEDENT>
Keyword arguments are:
api_key:        Your Postmark server API key