implemented import order changes. removed import nibabel (no longer used). implemented pyflakes and pep8 flags.