Added fill function in var.py.