Computation of periodic orbits of non-autonomous systems and fixed points of maps using Newton method