Minor spacing issue in generate_weights function