I haven't personally used it, but this script has had some attention for being able to create firewall rules from the CLI using Python for the MX platform.
Welcome to the Meraki Community! To start contributing, simply sign in with your Cisco account. If you don't yet have a Cisco account, you can sign up.