Removed useless code
Better name for module template
Added pkg destination folder attribute
Fixed exception handling syntax
Python 3 compatibility