To be migrated to PyNDN2