Update namesandtypes.py

fixed issue #914