A python script to convert strings to DWs