Better test error message.
import cleanup
Regenerated scan cython file with newer cython version 0.19.2
Remove the hack with filename extension by fixing it correctly.
update mrg to new numpy api.
update manually scan cython file to new numpy c api.

Manually updated scan c code version too.
some pep8
remove import not used.