upload file html widget and python magic library