By the way, in rst you don't need this if you end the previous sentence with a double colon, e.g.

    The code to achieve this is as folows::

        import nipype...