Add more descriptive error message

Change error message to a more descriptive message (include name of the culprit parameter)

Old message: `Type of None should be in (<type 'str'>, <type 'unicode'>)`

New message: `q's value: None should be in types (<type 'str'>, <type 'unicode'>)`