create new project with Jira and python
<p>Using Python 2.7, and jira-python package (version 1.0.4)</p>

<p>I tried this code:</p>

<pre><code>from jira.client import JIRA
user     = 'admin'
password = 'xxx'
server   = 'https://xxx.atlassian.net'
jira = JIRA(basic_auth=(user, password), options={'server': server})    
projname       ="ProjetCreatedFromPython"
projkey        ="PROJPYTHON"
projassignee   =user

#Problem line - I've tried leaved "Scrum" empty and used a few different variations.  
jira.create_project(projkey, projname, projassignee, 'Scrum')
</code></pre>

<p>I get the error: File "/Library/Python/2.7/site-packages/jira/client.py", line 2357, in create_project
    for template in j['projectTemplates']:
KeyError: u'projectTemplates'</p>

<p>When I look at the source: <a href="https://pythonhosted.org/jira/_modules/jira/client.html#JIRA.create_project" rel="nofollow">https://pythonhosted.org/jira/_modules/jira/client.html#JIRA.create_project</a></p>

<p>It seems like my project template is empty.  My Jira user can create projects, and programmatically I can add issues.  </p>