Added more convenient API for creating dict from file