Remove redundant "open" which causes TypeErrors.