Can I generate a dashboard just using Python Code?
Yes.  Just build a JSON structure corresponding to the dashboard you want to build.  In the future, the galyleo module will be extended to provide convenience API calls to do most of this.