unit test for parse_permissions_css
Refactor Dataset marshaling and add unit tests
Fix flake8 errors