Fix ConstructSparseFromList.infer_shape

Now, the first argument contains the shape itself, so we should use
its value, not its shape.
Add test for ConstructSparseFromList.infer_shape
Pep8 / unused imports
Merge pull request #1298 from lamblin/fix_sparse_infershape

Fix ConstructSparseFromList.infer_shape