generating signature script with python