Removed Numpy dependency.
Added Python 3 compatibility.