Made resources.py:deserialize respect the format argument