replaced basestring with str
Removed <export> tag from package.xml when empty