title: AttributeError in python-rtmidi sample code
body: <p>I installed rtmidi for python and was able to import it. But when I tried to run the whole usage example given here: <a href="https://pypi.python.org/pypi/python-rtmidi" rel="nofollow">https://pypi.python.org/pypi/python-rtmidi</a>, I got this error: </p>
  
  <p>AttributeError: 'rtmidi_python.MidiOut' object has no attribute 'get_ports'</p>
  
  <p>Here's the full code:</p>
  
  <pre><code>import time
  import rtmidi_python as rtmidi
  
  midiout = rtmidi.MidiOut()
  available_ports = midiout.get_ports()
  
  if available_ports:
      midiout.open_port(0)
  else:
      midiout.open_virtual_port("My virtual output")
  
  note_on = [0x90, 60, 112] # channel 1, middle C, velocity 112
  note_off = [0x80, 60, 0]
  midiout.send_message(note_on)
  time.sleep(0.5)
  midiout.send_message(note_off)
  
  del midiout
  </code></pre>
  
  <p>I modified the code a little bit in the import part, because somehow it doesn't work when I put <code>import rtmidi</code> but works when I put <code>import rtmidi_python</code>.</p>
  
  <p>I'm using Python 3.5. Any help will be appreciated, thanks!</p>