IOT scripts in perl and python