fix for may_publish_datasets when pylons c object not available
fix missing import
Merge pull request #229 from wardi/master

Fix for a load-datasets failure with new validation code