bug fix on python script and null calculator