improve segment take_[]_by_[] methods
fix segment all_data python 3 compatibility
fix bug in _new_spiketrain
improve unit tests for neo core
improve unittest coverage for neo core