modified create_cube_aggregate, pep8