adding security features for reading files for #24
call get_file from to_python, reducing code copy/paste for #23