Fix major bug in entity creation, pep8.
Merge branch 'master' of github.com:granoproject/grano-client