Add basic scratchpad python binding
(cherry picked from commit 8ec0121043ed03ce3046eecb26cc4a279e6ea601)