Fixed pkg extraction, django testcase bug