Put in argument to denote if file already exists for safety for not overwriting existing results on accident
In the initialization of Popresult
class put in argument like newfile
that denotes that you want to create a new file. If that is set to True and the file already exists, issue error/warning here