refactoring.
Add bin type support to pure Python packer.