1. Long is not supported in python3 so using `numbers.Integral` instead. 2. added `tuple` to the list case 3. `strings` are restored as `bytes`. Changed to restore string as string and bytes as bytes. in python2 both functions restore as str. 4. Added type to the ValueError exception to display the type that is not supported.