fix url decoding
shorted operators
PEP8
simplify funtion for PEP8