fixed open file

forgot about the parenthesis in the fo.close()