join dirpath and filename into path, use it as an argument for the call to the function os.path.normpath, substitute it for file_path.
file_path = os . path . normpath ( os . path . join ( dirpath , filename ) )