Add numpy to requirements
Flush CSV after every write