Python 3 support and parse empty sequences and maps

fixes to make it parse on python 3 (requires also a fix on pyrfc3339 to work)

also support parsing empty vectors, lists, sets and maps