import random
cls = "random"
non_callable_attributes = [s for s in dir(eval(cls)) if not s.startswith("__") and not
callable(eval(cls + "." + s))]
print(non_callable_attributes)
'''
run:
['BPF', 'LOG4', 'NV_MAGICCONST', 'RECIP_BPF', 'SG_MAGICCONST', 'TWOPI', '_e', '_inst',
'_pi', '_random']
'''