Python by default, does not have support for the two major functions, namely FIPS_mode() and FIPS_mode_set() needed to activate the FIPS mode of the system's OpenSSL through the SSL Module. So, for the purpose fulfilling the requirement of a project and using this patch as an inspiration, add the following lines of code to the source code of Python 3.6.0 and then build Python from source.
# LibreSSL does not provide RAND_egd
pass