Been getting interested in booms and thinking about 37mm. As was mentioned, any HE above 1.3 grams makes it a DD if launched. Tannerite/ammonal is a HE. So no no to launch, transport, sell mixed, the whole bit. It is also pretty insensitive (there are ways to sensitize) and will not do anything more on impact then fertilize your range.
How to legally have fun? Easy!
First, it is your responsibility to know your state and federal laws obviously. Also if you hurt anybody or anything, thats on you. Also I would NOT recommend using 3d printed launchers as a hang fire can be a life changing experience.
All of that being said. Here is a excellent video to download on how to make reliable fuses (dude in video has a different application for it)
A 3d printed hull could use a similar fuse to the one in the video. Would use a two piece shell that the noze screws on to. The shell can be filled with a potassium perchlorate/dark aluminum (70/30) mix. It is relatively insensetive as far as flash powders go. I would not recommend making large amounts. Flash powder is not a HE. Coupled with a time fuse (time it to land and sit before going) you will get a excellent report, and very bright flash.
Flash powder mishandled can be very dangerous! Reloading is dangerous! Life is dangerous! It is safer to not have fun.
Anyways, theres some ideas.
Oh, you can buy commercial novelty 37mm "flash bang" rounds that are this exact thing.