switch settings format from yaml to plain python; better separation of calc_target_path functions