frontend: don't duplicate enums.BuildSourceEnum
We include helpers.BuildSourceEnum on many places in Frontend code. So
to not touch all the places now, let's just import BuildSourceEnum
inside helpers so we can techincally import from both places.
Fixing also some import PyLint issues that popped-up in this change.