import os
import warnings

from ..common.config import load_config
from .project import Project

def get_project(project_path = None):
    if project_path is not None:
        cwd = os.getcwd()
        os.chdir(project_path)
        project = Project()
        os.chdir(cwd)
    else:
        project = Project()
    project.get_id()
    return project

@@ -7,64 +7,8 @@
  os%0A
-import warnings%0A%0Afrom ..common.config import load_config
 %0Afro
@@ -270,16 +270,31 @@
 get_id()
+ # sanity check
 %0A    ret

Remove unnecessary imports.