Refactor field types.
Remove unused packets.py
Change packet api.