Fix a bug in the Proxy API for tokens that have no mask, and override __nonzero__ for the KeyMask class for ease of use.

Signed-off-by: Tyler O'Meara <Tyler@TylerOMeara.com>
Merge pull request #365 from Acidity/feature/fixKeyMasks

Fix a bug in the Proxy API for tokens that have no mask, and override __...