Add check conditions and refactoring

Check Wnck.WindowType in check_unity function
Check Dash's window name in Ubuntu 13.04 in check_unity function
Refactor check_unity function to be more Pythonic