Update readwrite.py