python code for e-signpad