Line nodes and surface Majorana flat bands in static and kicked p-wave superconducting Harper model