filtered out riparian string with python script