Removed custom pkg_resources

Getattr fix