Bazooka blast ev3 Mindstorms using Python
ev3dev works pretty well for that purpose, and all you need is a microSD card.

You'll need to use the Motor class. It work with both large and medium motors, and either can be use to shoot balls, so this part will be at your preference.