python syntax error

I'm having a bit of trouble figuring out what is wrong with this script. I am trying to tell it "if there is a direction in the pdir/sdir field, concatenate the string into the field, otherwise just print the sname + typ". It says the syntax error is on line 3. Thanks.

return ... your lines where you will forget the plus or space ..... with

return ...my line

return .... modify my line 1 to reflect your new order for N, S, E and W it

ie sname, typ, sdir

my format line replaces the { } with the contents of the values in the format side. since they are in order they will fill those brackets with the values... Note, that I put a space inbetween them... you could use commas or whatever in between them. The trick is the values are converted to strings automatically so there is no need for str ing anything. and it will return a string as output