numpy cleanup