Implementation of iterative hard thresholding in python with the scipy/numpy libraries