update to vicpy script and python 3 fixes