Renamed flask class using absolute import directive.
Refactored the get class function.