Ensure file handle is closed using with statement
Merge pull request #96 from svisser/patch-1

Ensure file handle is closed using with statement
get rid of redundant ALLOWED_PROPERTY_TYPES