refactor python_sml search
move parameter spaces into a class