title: Pickle error when connecting to dask.distributed cluster
body: <p>It is my simple code.Trying to run my 1st program.</p>
  
  <pre><code>from dask.distributed import Client
  client = Client('192.168.1.102:8786')
  
  
  def inc(x):
      return x + 1
  
  x = client.submit(inc, 10)
  print(x.result())
  </code></pre>
  
  <p>when trying to run this code by using this command:</p>
  
  <pre><code>$python3 filename.py
  </code></pre>
  
  <p>I am geing this error:</p>
  
  <pre><code>/usr/local/lib/python3.4/dist-packages/distributed/protocol/pickle.py
  - INFO - Failed to serialize &lt;function inc at 0x7f678ad05840&gt; Traceback (most recent call last):   File
  "/usr/local/lib/python3.4/dist-packages/distributed/protocol/pickle.py",
  line 33, in dumps
      return cloudpickle.dumps(x, protocol=pickle.HIGHEST_PROTOCOL) AttributeError: 'module' object has no attribute 'dumps'
  
  During handling of the above exception, another exception occurred:
  
  Traceback (most recent call last):   File
   "/usr/local/lib/python3.4/dist-packages/distributed/protocol/pickle.py",
   line 43, in dumps
      return cloudpickle.dumps(x, protocol=pickle.HIGHEST_PROTOCOL) AttributeError: 'module' object has no attribute 'dumps' Traceback
   (most recent call last):   File
   "/usr/local/lib/python3.4/dist-packages/distributed/protocol/pickle.py",
   line 33, in dumps
       return cloudpickle.dumps(x, protocol=pickle.HIGHEST_PROTOCOL) AttributeError: 'module' object has no attribute 'dumps'
  
  During handling of the above exception, another exception occurred:
  
  Traceback (most recent call last):   File "dis.py", line 8, in
   &lt;module&gt;
      x = client.submit(inc, 10)   File "/usr/local/lib/python3.4/dist-packages/distributed/client.py", line
   643, in submit
       loose_restrictions, priority={skey: 0})   File "/usr/local/lib/python3.4/dist-packages/distributed/client.py", line
   1235, in _graph_to_futures
       'tasks': valmap(dumps_task, dsk3),   File "/usr/local/lib/python3.4/dist-packages/toolz/dicttoolz.py", line 84,
   in valmap
       rv.update(zip(iterkeys(d), map(func, itervalues(d))))   File "/usr/local/lib/python3.4/dist-packages/distributed/worker.py", line
   812, in dumps_task
       return {'function': dumps_function(task[0]),   File "/usr/local/lib/python3.4/dist-packages/distributed/worker.py", line
   779, in dumps_function
       b = dumps(func)   File "/usr/local/lib/python3.4/dist-packages/distributed/protocol/pickle.py",
   line 43, in dumps
       return cloudpickle.dumps(x, protocol=pickle.HIGHEST_PROTOCOL) AttributeError: 'module' object has no attribute 'dumps'
  </code></pre>