translates valid perl scripts into valid python scripts