RF - putted all code under if __name__ == '__main__'
corrected tab size