update: Pythonize the code a bit

* Use np.argmin/argmax where appropriate.

* Use spaces instead of tabs.

* Use Pythonic naming scheme.

Signed-off-by: mr.Shu <mr@shu.io>
Merge pull request #3 from mrshu/mrshu/pythonize

update: Pythonize the code a bit