decode ways   in python ver.