hwrt/HandwrittenData.py: use Agg for matplotlib.pyplot to prevent 'no display name and no :0.0 environment variable'