Decode String Function Python Syntax