str.lstrip is odd, 'str' here is the built in class type for strings so str.lstrip is a classmethod, not a module or instance method. 

string.lstrip(file_dir, '/') is the old way, file_dir.lstrip('/') is the new way.