added check to ensure numpy version >= 1.7 is installed in order to use
the choice function
removed duplicate import
removed unused imports and added missing numpy import