Changing via size with Python?

But in this post it is possible with Python. I only need to know how to change the length of the via hole.