Generating python module rpm is easy. Please see the Python 3 and Python 2
python setup.py bdist_rpm
This will create RPM in dist folder.