Science is not imperfect at all. All " Science" is, is observing and documenting the natural world, and proposing theories as to why/how things work.
If God created anything at all it's mathematics. Mathematics is perfect. It is infallible. Humans simply don't understand mathematics well enough to unlock the true nature of the universe.