[python] Modularize code, add getAlias() and comments, write rrdgraph.py