Added numpy dependencies and fixed pip to be python version independent.

Added python-numpy and python3-numpy as installation dependencies. Also changed the lines that use pip to be independent of the python versions installed.