Allow bulk import of existing repos into namespaced project

Recently we were setting up gitlabhq for our organization and we required to import a whole bunch of existing repos into namespaced projects. I had to twak this old bulk import script to allow root,email, namespace in arguments.
the root is the base dir containing all .git repos to be imported
email is the email id of the project owner
and namespace is the pre created namespace name in gitlab.