flatten in python sucks...