fixed problem in function inspect_payload in metadata.py
fixed problem in function inspect_payload in metadata.py