Added user-configurable metrics.

Added mechanism to include user-configurable metrics using python scripts. Note that default metrics are still calculated without python scripts.