jira.py: fix loop issue