Creating an IPFS URI with Python

Is there a Python module or script to create an IPFS URI from given content (i.e. files or directories)?