Include none python files to module

I’m writing my own module to ansible and part of the code can’t be in python as the software i’m working against does not have a python api. It does support groovy so I included a groovy script but in the module directory but when i run the module i notice that ansible copies all python files in the module to /tmp/ansible_{{ some_random_character }}. However ansible does not include my groovy script so when i try to run the module it crashes as it can’t find the groovy script. Is there some way to tell ansible to include all files in the module directory not just python files?

The module directory look like this now

module
init.py
deploy.groovy
deploy.py

code sample (if there is a better way to do it)
pathname = os.path.dirname(sys.argv[0])
p = subprocess.Popen("groovy " + pathname + "/deploy.groovy ")