Cmdb customfields api

Exposed CMDB customfields in api for rerad + some flake8-driven corrections.