Port flatten over to skbio

This implementation of flatten is much cleaner and faster than other of
the available alternatives.
Fix PEP8 annoyances
Remove unused import

Thanks @wasade 🍻
Merge pull request #172 from ElDeveloper/port-flatten

Port flatten over to skbio