bash and perl support. small change to python code