fix notebook upload

pythonnism + PUT instead of POST
Merge pull request #4425 from Carreau/fix-js-python

Fix impossibility to upload notebooks.