style improvement: removed backslash line endings, made numpy import explicit