def create(self, executable, template=None, policy_groups=None, abstractions=None, read=[], read_and_write=[]):
        '''
        Creates a profile for an executable. Please refer to the `aa-easyprof manual pages <http://manpages.ubuntu.com/manpages/precise/man8/aa-easyprof.8.html>`_ for more documentation.

        :param executable: The executable to be referenced by the profile being created.
        :type executable: :class:`str`
        :param template: If provided, will be used instead of the "default" one. Defaults to :data:`None`.
        :type template: :class:`str`
        :param policy_groups: If provided, use its items as the policy groups. Defaults to :data:`None`.
        :type policy_groups: :data:`iterable`
        :param abstractions: If provided, use its items as the abstractions. Defaults to :data:`None`.
        :type abstractions: :data:`iterable`
        :param read: If provided, paths to be readable by the executable. Defaults to :data:`[]` (empty list).
        :type read: :data:`iterable`
        :param read_and_write: If provided, paths to be readable and writable by the executable (there's no need to provide the "read" argument in this case). Defaults to :data:`[]` (empty list).
        :type read_and_write: :data:`iterable`

        Example:
        ::

            from provy.core import Role
            from provy.more.debian import AppArmorRole

            class MySampleRole(Role):
                def provision(self):
                    with self.using(AppArmorRole) as apparmor:
                        apparmor.create("/usr/sbin/nginx", policy_groups=['networking', 'user-application'],
                                        read=["/srv/my-site"], read_and_write=["/srv/my-site/uploads"])
        '''
        command = 'aa-easyprof'
        if template is not None:
            command += ' -t %s' % template
        if policy_groups is not None:
            groups = ','.join(policy_groups)
            command += ' -p %s' % groups
        if abstractions is not None:
            abstr = ','.join(abstractions)
            command += ' -a %s' % abstr
        for path in read:
            command += ' -r %s' % path
        for path in read_and_write:
            command += path % ' -w %s'
        command += ' %s' % executable
        self.execute(command, stdout=False, sudo=True)
dataset/ETHPy150Open python-provy/provy/provy/more/debian/security/apparmor.py/AppArmorRole.create/swapped operands of `%`