Draw a shape with bezier curve (node with handle) in Python?

Good news, I found this method, it works fine for me.