This is done as per https://discuss.streamlit.io/t/typeerror-descriptors-cannot-not-be-created-directly/25639/8