Python modules

The idea with this change is to allow people to import the grok script and run them as they so desire.
At the moment, with the script in /usr/bin, they cannot be imported by python.

Note: I can also send the patches by emails or via a git request-pull if preferred.