fixed issue with metadata and python 3