Python web interface to scan document