added scipy and numpy