Add stat handler to https://github.com/Almenon/AREPL-backend/blob/master/python/arepl_custom_handlers.py