JIRA Resource Property Holder is not Picklable

I do some sorting based on ‘status’, ‘components’ etc on the JIRA Resource object in python. Since I have written them under functions, it takes too much time. In order to make it faster I tried using multiprocessing. But it seems that JIRA Resource object is not picklable and multiprocessing can’t be used. But multithreading can be used.

    Changes needed to jira/resources.py

    top = type(str('PropertyHolder'), (object,), raw)
    top = PropertyHolder(raw)

    and add at the end

    class PropertyHolder(object):
      def __init__(self, raw):
        __bases__ = raw