ActiveSites scripts fix in .sh and .py