Restricted Boltzmann Machine implementation in Python for pre-training deep neural networks