Refactoring python and its utils setup