Simplified condition
Simplified chained comparisons
Fixed docstrings quoting
PEP8 coding style
Make any file selector work

The leading *. is already included.
Adding it twice had for effect to not return any files!
Autodetect available audio types
Prevent X error

Move grabkeyboard() to when the window is visible.
Else we get the following X error:
X Error: BadWindow (invalid Window parameter) 3
  Major opcode: 31 (X_GrabKeyboard)
  Resource id:  0x0
Prevent division by 0
Merge pull request #20 from rdoursenaud/autodetect

Review + autodetect feature