Fixes obsolete import and dimensionality reduction issue

* Correct pca.py module is imported now
* PCA was effectively ignoring num_component parameter. A test has been added and the issue is fixed as proposed in #1260