Group_permissions using api in python

You should be able to use python to do this just like the pydiscourse library does. You need to do what @riking said and create a hash in python just like: