Added Flex build to Python build process to unify the building process