A base module for writing python api modules