python bases program